﻿<%@ Page Language="C#" MasterPageFile="~/admin/AdminTemplate.master" AutoEventWireup="true" CodeFile="DeleteComment.aspx.cs" Inherits="admin_DeleteComment" Title="Admin" UICulture="vi" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel1" runat="server" ForeColor="White" GroupingText="Bảng quản lý comment"
        Height="100%" Width="95%">
        <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="CommentID" OnCustomUnboundColumnData="ASPxGridView1_CustomUnboundColumnData" Width="100%"><Columns>
<dxwgv:GridViewDataTextColumn FieldName="CommentID" Caption="STT" VisibleIndex="0"></dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn FieldName="from" UnboundType="String" Caption="Người comment" VisibleIndex="1">
<Settings FilterMode="DisplayText" AutoFilterCondition="Contains"></Settings>
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn FieldName="to" Caption="Người được comment" VisibleIndex="2" UnboundType="String">
<Settings FilterMode="DisplayText" AutoFilterCondition="Contains"></Settings>
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataDateColumn FieldName="CommentDate" Caption="Ng&#224;y giờ" VisibleIndex="3"></dxwgv:GridViewDataDateColumn>
<dxwgv:GridViewDataHyperLinkColumn FieldName="CommentID" Caption="#" VisibleIndex="4">
<PropertiesHyperLinkEdit Text="X&#243;a" NavigateUrlFormatString="~/admin/DeleteComment.aspx?id={0}" TextFormatString="Xo&#225;"></PropertiesHyperLinkEdit>
</dxwgv:GridViewDataHyperLinkColumn>
<dxwgv:GridViewCommandColumn VisibleIndex="5">
<ClearFilterButton Visible="True"></ClearFilterButton>
</dxwgv:GridViewCommandColumn>
</Columns>

<Settings ShowFilterRow="True"></Settings>
            <SettingsPager PageSize="5">
            </SettingsPager>
</dxwgv:ASPxGridView>
    </asp:Panel>
    <br />
    <br />
    <asp:Panel ID="Panel2" runat="server" ForeColor="White" GroupingText="Xóa comment"
        Height="100%" Width="95%" Visible="False">
        <table width="100%">
            <tr>
                <td align="left" style="width: 200px">
                    Mã số :</td>
                <td align="left">
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" style="width: 200px">
                    Người comment :</td>
                <td align="left">
                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" style="width: 200px">
                    Người được comment :</td>
                <td align="left">
                    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" style="width: 200px">
                    Ngày giờ :</td>
                <td align="left">
                    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" style="width: 200px">
                    Nội dung comment :</td>
                <td align="left">
                    <asp:TextBox ID="TextBox1" runat="server" MaxLength="200" ReadOnly="True" Rows="5"
                        TextMode="MultiLine" Width="223px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="left" style="width: 200px">
                    Đánh giá :</td>
                <td align="left">
                    <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" style="width: 200px; height: 26px">
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                </td>
                <td align="left" style="height: 26px">
                    <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="Red" Text="Đồng ý xóa" />
                    <asp:Label ID="Label5" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td align="left" style="width: 200px">
                </td>
                <td align="left">
                    <asp:Button ID="Button1" runat="server" Text="Xóa" Width="95px" OnClick="Button1_Click" /></td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

